package com.lankystar.logistucs.spring.dao;

import java.util.List;

import com.lankystar.logistucs.spring.entity.OneOrder;

public interface IOneOrderDao extends IBaseDao {

	/**
	 * 查询到：一级、二级、车、司机
	 * @param userId
	 * @return
	 */
	Object[] selectOneOrderAndTwoOrder(int userId);
	/**
	 * 通过司机Id查找一级订单、订单状态
	 * @param userId
	 * @return
	 */
	List<Object[]> selectOneOrderAndOneStatusByUserId(int userId);
	/**
	 * 通过二级订单Id查询到一级订单
	 * @param twoOrderId
	 * @return
	 */
	OneOrder selectOneOrderByTwoOrderId(int twoOrderId);
	/**
	 * 根据总提单号、分单号、订单状态查询订单
	 * @param totalOrderNu
	 * @param pointOrderNu
	 * @param oneStatusKey
	 * @return
	 */
	List<Object[]> selectOrderAndStatus(String totalOrderNu,String pointOrderNu,int userId);
}
